//
//  SingleDateFormatter.h
//  lvfj
//
//  Created by lvfeijun on 2021/7/23.
//  Copyright © 2021 Goudu KuaiEx Technology(Shenzhen)Co.,ltd. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef enum : NSUInteger {
    EnumDateFormatterTypeHHmmss,
    EnumDateFormatterTypeyyyyMMdd,
    EnumDateFormatterTypeyyyyMMddHHmmss,
} EnumDateFormatterType;
@interface SingleDateFormatter : NSDateFormatter

+(instancetype)sharedInstance;
+(NSDate *)getDateWithTime:(NSInteger)time;
+(NSDateFormatter *)getDateFormatter:(NSString *)format;
+(NSDateFormatter *)getDateFormatterType:(EnumDateFormatterType)type;
+(NSString *)getStringWithDate:(NSDate *)date dateFormatterType:(EnumDateFormatterType)type;

@end

NS_ASSUME_NONNULL_END
